package uiux4.quizschool;

import android.app.Activity;
import android.content.Intent;
import android.view.MenuItem;

public class OptionMenu {

Activity activity;
	
	public OptionMenu(Activity a, MenuItem item) {
		Intent intent = null;
		switch(item.getItemId()) {
		case R.id.main:
    		intent = new Intent(a, MainActivity.class);
    		break;
		/*case R.id.searchAc:
    		intent = new Intent(a, SearchActivity.class);
    		break;
    	case R.id.listAc:
    		intent = new Intent(a, ListActivity.class);
    		break;*/
    
		}
		a.startActivity(intent);
	}
}
